//
//  ArticlesListController.h
//  XProgress
//
//  Created by Ondrej Rafaj on 20.8.09.
//  Copyright 2009 Home. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface ArticlesListController : UIViewController {
	
	IBOutlet UITableView *xmlTable;
	IBOutlet UISearchBar *searchBar;
	
	UIActivityIndicatorView *activityIndicator;
	CGSize cellSize;
	NSXMLParser *xmlParser;
	NSMutableArray *items;
	
	NSString *xmlPath;
	
	NSString *searchString;
	
	// a temporary item; added to the "stories" array one at a time, and cleared for the next one
	NSMutableDictionary *item;
	
	// it parses through the document, from top to bottom...
	// we collect and cache each sub-element value, and then save each item to our array.
	// we use these to track each current item, until it's ready to be added to the "stories" array
	NSString *currentElement;
	NSMutableString *currentWord, *currentAccent, *currentDescription, *currentLink;
	
}


@property (nonatomic, retain) NSString *xmlPath;
@property (nonatomic, retain) NSString *searchString;

@property (nonatomic, retain) IBOutlet UISearchBar *searchBar;

@end
